<template>
    <div>
        <div class="top flex">
            <div class="title">
                <span class="">评论</span>
            </div>
            <div class="top-sort">
                <span>最热</span>
                <el-divider direction="vertical"></el-divider>
                <span>最新</span>
            </div>
        </div>
        <div>
            <div class="flex top">
                <div class="avatar">
                    <el-avatar :size="40" src="https://q1.qlogo.cn/g?b=qq&nk=2770063826&s=100"></el-avatar>
                </div>
                <div class="flex input">
                    <el-input placeholder="天青色等烟雨，评论区在等你" v-model="content" type="textarea"></el-input>
                    <el-button type="primary">发布</el-button>
                </div>
            </div>
            <div>
                <div class="nocenter-flex" v-for="index in 3" :key="index">
                    <div class="avatar-content">
                        <el-avatar :size="40" src="https://q1.qlogo.cn/g?b=qq&nk=2770063826&s=100"></el-avatar>
                    </div>
                    <div>
                        <div class="flex username-div">
                            <div class="username"><span>Jixer</span></div>
                            <div>
                                <span>1</span>
                            </div>
                        </div>
                        <div class="content">
                            <span>asdasdasdasdasdas
                                d+mod能够超越1mod能够超越1mod能够超越1mod够超越1mod能够超越1mod能够超越1mod够超越1mod能够超越1mod能够超越1mod能够超越1mod能够超越1+mod</span>
                            <div class="content-detail">
                                <span>2013-9-18</span>
                                <span>428</span>
                                <span>428</span>
                                <span>回复</span>
                            </div>
                            <div>
                                <div class="nocenter-flex">
                                    <div class="avatar-return">
                                        <el-avatar :size="28"
                                            src="https://q1.qlogo.cn/g?b=qq&nk=2770063826&s=100"></el-avatar>
                                    </div>
                                    <div>
                                        <span class="username">Jixer</span>
                                        <span class="level">1</span>
                                        <span>
                                            asdasdasdasdasdas
                                            d+mod能够超越1mod能够超越1mod能够超越1mod够超越1mod能够超越1mod能够超越1mod够超越1mod能够超越1mod能够超越1mod能够超越1mod能够超越1+mod
                                        </span>
                                    </div>
                                </div>
                            </div>
                            <BiliDivider></BiliDivider>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</template>

<script>
import BiliDivider from '@/components/bili-divider'
export default {
    name: "video-comment",
    components: {
        BiliDivider
    },
    data() {
        return {
            content: null
        }
    },
}
</script>

<style scoped>
.top {
    margin: 20px 0;
}

.title {
    color: #18191C;
    font-family: PingFang SC, HarmonyOS_Medium, Helvetica Neue, Microsoft YaHei, sans-serif;
    font-weight: 500;
    font-size: 20px;
    margin-right: 30px;
}

.top-sort {
    color: #9499A0;
    cursor: pointer;
    font-size: 13px;
}

.flex {
    width: 100%;
    display: flex;
    align-items: center;
}

.nocenter-flex {
    width: 100%;
    display: flex;
}

.avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 80px;
    height: 50px;
}

.avatar-content {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    justify-content: center;
}

.avatar-return {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
}

.input {
    flex: 1;
}

.input .el-textarea {
    margin-right: 10px;
}

.input .el-button {
    height: 50px;
}

.username-div {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-family: PingFang SC, HarmonyOS_Regular, Helvetica Neue, Microsoft YaHei, sans-serif;
    font-weight: 400;
    box-sizing: border-box;
}

.username {
    font-family: PingFang SC, HarmonyOS_Medium, Helvetica Neue, Microsoft YaHei, sans-serif;
    font-weight: 500;
    margin-right: 5px;
    color: #61666d !important;
    cursor: pointer;
    font-size: 13px !important;
}

.content span {
    color: #18191C;
    font-size: 15px;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 24px;
    vertical-align: baseline;
}

.content-detail span {
    margin-right: 20px;
    font-size: 13px;
    color: #9499A0;
}

.level {
    margin-right: 20px;
}
</style>